package models

import "gorm.io/gorm"

type News struct {
	gorm.Model
	Title     string `gorm:"type:varchar(30);not null;comment:新闻标题"`
	Context   string `gorm:"type:varchar(200);not null;comment:内容"`
	LikeCount int    `gorm:"type:int;not null;default:0;comment:点赞数"`
}
